package utils;

import book.Book;

public class AnalyzingBook {
    public void storeObject(Book[]books,String filename){
        int booksUseLen=0;
        for (int i=0;i<books.length;i++){
            if (books[i]!=null){
                booksUseLen++;
            }
        }
StringBuilder jsonArray=new StringBuilder();
        for (int i=0;i<booksUseLen;i++){
            if(books[i]!=null){
               jsonArray.append(books[i].toJSON());
            }
            if (i!=booksUseLen-1){
                jsonArray.append("\n");
            }
        }

    }
    public void loadObject(String filename){

    }


}
